package CutLoad.transitions
{
	/**
	 * 效果的基类 
	 * @author smallerbird mail:smallerbird@gmail.com  site:www.mkigm.com QQ群:49983196
	 * 
	 */	
	public class TBase implements ITransition
	{
		//当前状态值
		protected var cs:Number=0
		//当前值
		protected var currNum:Number=0
		//
		protected var funEnterFrame:Function=null,funEnd:Function=null;
		//
		public function TBase()
		{
		}
		/**
		 * 初始化所有回调方法 
		 * 
		 */		
		public function initAllFun():void{
			funEnterFrame=funEnd=function():void{
				
			};
		}
		/**
		 * 开始 
		 * 
		 */		
		public function start(someData:TransitionsData=null):void{
			cs=1;
		}
		/**
		 * 结束 
		 * 
		 */		
		public function stop(someData:TransitionsData=null):void{
			cs=0;
		}
		/**
		 * 状态值说明：0:停止 1:开始 
		 * @return 
		 * 
		 */		
		public function get state():Number{
			return cs;
		}
		public function enterFrame():void
		{
			
		}
		public function setFunEnterFrame(fun:Function):void{
			this.funEnterFrame=fun;
		}
		public function setFunEnd(fun:Function):void{
			this.funEnd=fun;
		}
		public function clone(someData:TransitionsData):ITransition{
			return null;
		}
	}
}